//
//  JGPhotoManager.h
//  JGRider
//
//  Created by 单启志 on 2018/2/8.
//  Copyright © 2018年 ffq. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <TZImagePickerController.h>

@interface JGPhotoManager : NSObject

+(instancetype)share;
//拍照
-(void)CameraWithController:(UIViewController*)vc callBack:(void(^)(UIImage *image))block;
//预览
+(void)previewWithController:(UIViewController*)vc WithSelectedAssets:(NSMutableArray*)assets selectedPhotos:(NSMutableArray<UIImage*>*)photos index:(NSInteger)index;
//相册
-(void)photoWithMaxImagesCount:(NSInteger)count Controller:(UIViewController*)vc callBack:(void(^)(NSArray<UIImage *> *photos, NSArray *assets))block;

//打开之前设置上次选中的图片(一个控制器多次使用单例时使用)
-(void)selectedAssets:(NSArray<UIImage*>*)arr;
@end
